<html>
<head><meta charset="utf-8"><title>Make Polonius input facts public · t-compiler/wg-polonius · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/186049-t-compiler/wg-polonius/index.html">t-compiler/wg-polonius</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/186049-t-compiler/wg-polonius/topic/Make.20Polonius.20input.20facts.20public.html">Make Polonius input facts public</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180510279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/186049-t-compiler/wg-polonius/topic/Make%20Polonius%20input%20facts%20public/near/180510279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vytautas Astrauskas [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/186049-t-compiler/wg-polonius/topic/Make.20Polonius.20input.20facts.20public.html#180510279">(Nov 12 2019 at 12:26)</a>:</h4>
<p>Some compiler consumers like Prusti and MIRAI need information about aliasing that is available in the borrow checker. <a href="https://github.com/rust-lang/rust/pull/66297" target="_blank" title="https://github.com/rust-lang/rust/pull/66297">This pull request</a> adds a way for compiler consumers to access inputs of any query. However, most of the borrow checker functions and structures are private and cannot be accessed. <span class="user-mention" data-user-id="116009">@nikomatsakis</span> would it be fine with you (in principle, I am not sure yet when I will be able to start working on this) if I refactored <a href="https://github.com/rust-lang/rust/blob/56237d75b4271a8a2e0f47d86ea76ebf6d966152/src/librustc_mir/borrow_check/mod.rs#L102" target="_blank" title="https://github.com/rust-lang/rust/blob/56237d75b4271a8a2e0f47d86ea76ebf6d966152/src/librustc_mir/borrow_check/mod.rs#L102">do_mir_borrock</a> so it was possible to access region IDs and Polonius input facts?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>